import request from '@/utils/request'

// 查询四级联考身份验证列表
export function listIdentity(query) {
  return request({
    url: '/system/identity/list',
    method: 'get',
    params: query
  })
}

export function findRiQi() {
  return request({
    url: '/system/init/findRiQi',
    method: 'get'
  })
}
export function getPrint() {
  return request({
    url: '/system/identity/getTitle',
    method: 'get'
  })
}
// 查询四级联考身份验证详细
export function getIdentity(id) {
  return request({
    url: '/system/identity/' + id,
    method: 'get'
  })
}

// 新增四级联考身份验证
export function addIdentity(data) {
  return request({
    url: '/system/identity',
    method: 'post',
    data: data
  })
}

// 修改四级联考身份验证
export function updateIdentity(data) {
  return request({
    url: '/system/identity',
    method: 'put',
    data: data
  })
}

// 删除四级联考身份验证
export function delIdentity(id) {
  return request({
    url: '/system/identity/' + id,
    method: 'delete'
  })
}

// 导出四级联考身份验证
export function exportIdentity(query) {
  return request({
    url: '/system/identity/export',
    method: 'get',
    params: query
  })
}

// 下载身份验证数据导入模板
export function importTemplate() {
  return request({
    url: '/system/identity/importTemplate',
    method: 'get'
  })
}

// 生成递补身份验证名单
export function generateDbIdentityList() {
  return request({
    url: '/system/identity/generateDbIdentityList',
    method: 'post'
  })
}
